<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
	
	<h:head></h:head>
	<h:body>
		<ui:composition template="/template.xhtml">
			<ui:define name="corpo">
				<h:form>
					<p:fieldset legend="E-mail atual">
						<h:inputText value="#{emailBean.email.email}" />
					</p:fieldset>
					<p:fieldset legend="Novo e-mail">
						<h:inputText value="#{emailBean.novoEmail}" />
					</p:fieldset>
					<p:commandButton action="#{emailBean.mudarEmail}" value="Modificar e-mail" />
				</h:form>
			</ui:define>
		</ui:composition>
	</h:body>
	
</html>